import request from '@/utils/request'

export const getCourseContent = (courseId) => {
  return request({
    method: 'get',
    url: '/boss/course/section/getSectionAndLesson',
    params: { courseId }
  })
}

// 添加或更新章节
export const saveOrUpdateSection = (data) => {
  return request({
    method: 'post',
    url: '/boss/course/section/saveOrUpdateSection',
    data
  })
}
